package com.fzy.client.view;

import com.fzy.client.view.i.IRootView;
import com.google.gwt.core.client.GWT;
import com.google.gwt.uibinder.client.UiBinder;
import com.google.gwt.uibinder.client.UiField;
import com.google.gwt.uibinder.client.UiTemplate;
import com.google.gwt.user.client.ui.Composite;
import com.google.gwt.user.client.ui.HTMLPanel;
import com.google.gwt.user.client.ui.ToggleButton;
import com.google.gwt.user.client.ui.Widget;
import com.google.inject.Singleton;

@Singleton
public class RootView extends Composite implements IRootView {

	@UiTemplate("RootView.ui.xml")
	interface RootViewUiBinder extends UiBinder<Widget, RootView> {
	}

	private static RootViewUiBinder uiBinder = GWT
			.create(RootViewUiBinder.class);

	@UiField
	ToggleButton leftNavSwitch;
	@UiField
	HTMLPanel leftNav;
	@UiField
	HTMLPanel contentPanel;
	
	public RootView() {
		initWidget(uiBinder.createAndBindUi(this));
	}

	public ToggleButton getLeftNavSwitch() {
		return leftNavSwitch;
	}

	public void setLeftNavSwitch(ToggleButton leftNavSwitch) {
		this.leftNavSwitch = leftNavSwitch;
	}

	public HTMLPanel getLeftNav() {
		return leftNav;
	}

	public HTMLPanel getContentPanel() {
		return contentPanel;
	}

	public void setContentPanel(HTMLPanel contentPanel) {
		this.contentPanel = contentPanel;
	}

	public void setLeftNav(HTMLPanel leftNav) {
		this.leftNav = leftNav;
	}

}
